package com.example.health_life.service;

import com.example.health_life.dao.Course;
import java.util.List;

public interface CourseService {
    List<Course> getCourseList();
    
    Course getCourseById(Integer id);
    
    List<Course> getCourseListByLevel(Byte level);

    List<Course> getCourseListWithAuthorByStatus(Integer status);

    Course getCourseByIdWithAuthor(Integer id);
    
    List<Course> getCourseListByLevelWithAuthor(Byte level);
    
    int addCourse(Course course);
    
    int deleteCourse(Integer id);
    
    int updateCourse(Integer id, String title, String introduce, String coverImg, 
                    Byte level, Integer favorite, Byte status);
}
